<?php
$this->widget('bootstrap.widgets.TbBreadcrumbs',array(
	'links'=>array(
	UserModule::t("Users"),
	),
));
if(UserModule::isAdmin()) {
	$this->layout='//layouts/column1';
	$this->menu=array(
	array('label'=>'User Module'),
    array('label'=>UserModule::t('Create User'), 'icon'=>'star', 'url'=>array('/user/admin/create')),
    array('label'=>UserModule::t('View User'), 'icon'=>'eye-open', 'url'=>'#', 'disabled'=>true),
    array('label'=>UserModule::t('Update User'), 'icon'=>'pencil', 'url'=>'#', 'disabled'=>true),
    array('label'=>UserModule::t('Delete User'), 'icon'=>'trash', 'url'=>'#', 'disabled'=>true),
    array('label'=>UserModule::t('Manage Users'), 'icon'=>'cog', 'url'=>array('/user/admin/admin')),
    array('label'=>UserModule::t('Manage Profile Field'), 'icon'=>'edit', 'url'=>array('profileField/admin')),
    array('label'=>UserModule::t('List User'), 'icon'=>'th-list', 'url'=>'#', 'active'=>true),
	);
}
?>
<div class="row">
<div class="span9">
		<div style="padding: 10px;">
<h2 class="theheads"><?php echo UserModule::t("List User"); ?></h2>

<?php $this->widget('bootstrap.widgets.TbGridView', array(
	'dataProvider'=>$dataProvider,
	'columns'=>array(
		array(
			'name' => 'username',
			'type'=>'raw',
			'value' => 'CHtml::link(CHtml::encode($data->username),array("user/view","id"=>$data->id))',
		),
		'create_at',
		'lastvisit',
	),
)); ?>
	</div>
	</div>
	<div class="span3">
	<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>'Administration',
		));
		$this->widget('bootstrap.widgets.TbMenu',array(
			'type'=>'list',
			'items'=>$this->menu,
		));
		$this->endWidget();
	?>
	</div>
</div>